package com.wz.project.inStock.stockindetail.controller;

import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.wz.framework.aspectj.lang.annotation.Log;
import com.wz.framework.aspectj.lang.enums.BusinessType;
import com.wz.project.inStock.stockindetail.domain.InStockinDetail;
import com.wz.project.inStock.stockindetail.service.IInStockinDetailService;
import com.wz.framework.web.controller.BaseController;
import com.wz.framework.web.domain.AjaxResult;
import com.wz.common.utils.poi.ExcelUtil;
import com.wz.framework.web.page.TableDataInfo;

/**
 * 入库单据子表Controller
 * 
 * @author wz
 * @date 2022-09-07
 */
@Controller
@RequestMapping("/stockindetail/stockindetail")
public class InStockinDetailController extends BaseController
{
    private String prefix = "stockindetail/stockindetail";

    @Autowired
    private IInStockinDetailService inStockinDetailService;

//    @RequiresPermissions("stockindetail:stockindetail:view")
    @GetMapping()
    public String stockindetail()
    {
        return prefix + "/stockindetail";
    }

    /**
     * 查询入库单据子表列表
     */
//    @RequiresPermissions("stockindetail:stockindetail:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(InStockinDetail inStockinDetail)
    {
        startPage();
        List<InStockinDetail> list = inStockinDetailService.selectInStockinDetailList(inStockinDetail);
        return getDataTable(list);
    }

}
